package xkp.lesson2;

public class StringBuilderTest {
	public static void main(String[] args) {
		//无参构造会初始化一个容量为16的字符数组,但是此时实际存放的字符为0个。
		StringBuilder builder1 = new StringBuilder();
		builder1.append("0123456789");
		builder1.append("0123456789");
		//该构造会初始化一个容量为16+"abc".length的字符数组,然后把abc存放进去
		StringBuilder builder2 = new StringBuilder("abc");
		//该构造方法会初始化一个容量为100的字符数组，里面没有放字符
		StringBuilder builder3 = new StringBuilder(100);
	}

}
